#!/usr/bin/env node

const cp = require('child_process');

console.log('I am father','PID:',process.pid);
const cat = cp.spawn('cat',['../01-introduction/01-hello-world.js']);
const sort = cp.spawn('sort');
const uniq = cp.spawn('uniq');
cat.sdtout.pipe(sort.stdin);
sort.stdout.pipe(uniq.stdin);

uniq.sdout.pipe(process.stdout);
uniq.stderr.pipe(process.stderr);


